package com.lss.cloud.service.impl;

import com.lss.cloud.mapper.StorageMapper;
import com.lss.cloud.service.StorageService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 2024/3/26-22:53
 * 功能:
 */
@Service
@Slf4j
public class StorageServiceImpl implements StorageService {
    @Resource
    private StorageMapper storageMapper;
    @Override
    public void decrease(Long productId, Integer count) {
        //开始进行库存减小
        log.info("-------------------->productID:{},count:{}",productId,count);
        int row = storageMapper.decrease(productId,count);

    }
}
